name_list = ["zhangsan","lisi", "wangwu","wangxiaoer","zhangsan"]

list_len = len(name_list)
print("列表中包含 %d 个元素" % list_len)

count = name_list.count("zhangsan")
print("zhangsan出现了 %d 次" % count)

name_list.remove("zhangsan")  # 如果列表中有多个相同数据，会删除第一个出现的数据
print(name_list)